xl: do not continue in the child and exec xenconsole in the parent
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 2 Sep 2010 17:26:00 +0000 (18:26 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 2 Sep 2010 17:26:00 +0000 (18:26 +0100)
commite01988a3a37ebc117b2c0ca2918360b6ff31da99
treede4da09980420ea261f81878ceccbca02c116ab2
parent9b870a7e35d894536701834b1efa01ff42414b1f
xl: do not continue in the child and exec xenconsole in the parent

Currenctly console_autoconnect spawns a child that continues building
the domain while the parent exec's xenconsole; this patch inverts the
logic.

As a consequence autoconnect_console needs to be called twice: once for
pv guests at the beginning and once for hvm guests at the end.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c